<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IRremoteESP8266: src/ir_RC5_RC6.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IRremoteESP8266
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">ir_RC5_RC6.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>RC-5 &amp; RC-6 support RC-5 &amp; RC-6 support added from <a href="https://github.com/z3t0/Arduino-IRremote">https://github.com/z3t0/Arduino-IRremote</a> RC-5X support added by David Conran.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:aa42cae15fa77a196eb8f198de09e19eb"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#aa42cae15fa77a196eb8f198de09e19eb">kRc5T1</a> = 889</td></tr>
<tr class="separator:aa42cae15fa77a196eb8f198de09e19eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32b5997148b53fd2984388f6d0384c35"><td class="memItemLeft" align="right" valign="top">const uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#a32b5997148b53fd2984388f6d0384c35">kRc5MinCommandLength</a> = 113778</td></tr>
<tr class="separator:a32b5997148b53fd2984388f6d0384c35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26580409f593179d838c465647e35c41"><td class="memItemLeft" align="right" valign="top">const uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#a26580409f593179d838c465647e35c41">kRc5MinGap</a> = <a class="el" href="ir__RC5__RC6_8cpp.html#a32b5997148b53fd2984388f6d0384c35">kRc5MinCommandLength</a> - <a class="el" href="IRremoteESP8266_8h.html#a955183d3358fcafea853014ddd890574">kRC5RawBits</a> * (2 * <a class="el" href="ir__RC5__RC6_8cpp.html#aa42cae15fa77a196eb8f198de09e19eb">kRc5T1</a>)</td></tr>
<tr class="separator:a26580409f593179d838c465647e35c41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3485c1c157d6d84a0385cb1bfb8833a"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#ae3485c1c157d6d84a0385cb1bfb8833a">kRc5ToggleMask</a> = 0x800</td></tr>
<tr class="separator:ae3485c1c157d6d84a0385cb1bfb8833a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa206173838597c760b4a01c36bbc771a"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#aa206173838597c760b4a01c36bbc771a">kRc5SamplesMin</a> = 11</td></tr>
<tr class="separator:aa206173838597c760b4a01c36bbc771a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad98dc2541039634817609d4e297322f"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#aad98dc2541039634817609d4e297322f">kRc6Tick</a> = 444</td></tr>
<tr class="separator:aad98dc2541039634817609d4e297322f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff2a5bc05ddf61d289c44a4fd093009c"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#aff2a5bc05ddf61d289c44a4fd093009c">kRc6HdrMarkTicks</a> = 6</td></tr>
<tr class="separator:aff2a5bc05ddf61d289c44a4fd093009c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae05bbb9f690cc92feb0a9c14b3b8c477"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#ae05bbb9f690cc92feb0a9c14b3b8c477">kRc6HdrMark</a> = <a class="el" href="ir__RC5__RC6_8cpp.html#aff2a5bc05ddf61d289c44a4fd093009c">kRc6HdrMarkTicks</a> * <a class="el" href="ir__RC5__RC6_8cpp.html#aad98dc2541039634817609d4e297322f">kRc6Tick</a></td></tr>
<tr class="separator:ae05bbb9f690cc92feb0a9c14b3b8c477"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35a9cc59fe5251a34c88e34b6a507fd3"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#a35a9cc59fe5251a34c88e34b6a507fd3">kRc6HdrSpaceTicks</a> = 2</td></tr>
<tr class="separator:a35a9cc59fe5251a34c88e34b6a507fd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0196311c9b116cf48c8f901fb6c93ac3"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#a0196311c9b116cf48c8f901fb6c93ac3">kRc6HdrSpace</a> = <a class="el" href="ir__RC5__RC6_8cpp.html#a35a9cc59fe5251a34c88e34b6a507fd3">kRc6HdrSpaceTicks</a> * <a class="el" href="ir__RC5__RC6_8cpp.html#aad98dc2541039634817609d4e297322f">kRc6Tick</a></td></tr>
<tr class="separator:a0196311c9b116cf48c8f901fb6c93ac3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf2dc0074bfe7671deb8985eba4396e3"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#acf2dc0074bfe7671deb8985eba4396e3">kRc6RptLengthTicks</a> = 187</td></tr>
<tr class="separator:acf2dc0074bfe7671deb8985eba4396e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4989f36b790a99545e708c8681b6b961"><td class="memItemLeft" align="right" valign="top">const uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#a4989f36b790a99545e708c8681b6b961">kRc6RptLength</a> = <a class="el" href="ir__RC5__RC6_8cpp.html#acf2dc0074bfe7671deb8985eba4396e3">kRc6RptLengthTicks</a> * <a class="el" href="ir__RC5__RC6_8cpp.html#aad98dc2541039634817609d4e297322f">kRc6Tick</a></td></tr>
<tr class="separator:a4989f36b790a99545e708c8681b6b961"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4df09270c1e9cda504026189e30829ff"><td class="memItemLeft" align="right" valign="top">const uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#a4df09270c1e9cda504026189e30829ff">kRc6ToggleMask</a> = 0x10000UL</td></tr>
<tr class="separator:a4df09270c1e9cda504026189e30829ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31ae862ce2a43edd99bda647262b18fa"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#a31ae862ce2a43edd99bda647262b18fa">kRc6_36ToggleMask</a> = 0x8000</td></tr>
<tr class="separator:a31ae862ce2a43edd99bda647262b18fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7af2e83face1b9378d216f15a4d379cf"><td class="memItemLeft" align="right" valign="top">const int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#a7af2e83face1b9378d216f15a4d379cf">kMark</a> = 0</td></tr>
<tr class="separator:a7af2e83face1b9378d216f15a4d379cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c41a2a72148172c93e39d5a2fd64036"><td class="memItemLeft" align="right" valign="top">const int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__RC5__RC6_8cpp.html#a7c41a2a72148172c93e39d5a2fd64036">kSpace</a> = 1</td></tr>
<tr class="separator:a7c41a2a72148172c93e39d5a2fd64036"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>RC-5 &amp; RC-6 support RC-5 &amp; RC-6 support added from <a href="https://github.com/z3t0/Arduino-IRremote">https://github.com/z3t0/Arduino-IRremote</a> RC-5X support added by David Conran. </p>
<dl class="section see"><dt>See also</dt><dd><a href="https://en.wikipedia.org/wiki/RC-5">https://en.wikipedia.org/wiki/RC-5</a> </dd>
<dd>
<a href="http://www.sbprojects.com/knowledge/ir/rc5.php">http://www.sbprojects.com/knowledge/ir/rc5.php</a> </dd>
<dd>
<a href="https://en.wikipedia.org/wiki/Manchester_code">https://en.wikipedia.org/wiki/Manchester_code</a> </dd>
<dd>
<a href="https://en.wikipedia.org/wiki/RC-6">https://en.wikipedia.org/wiki/RC-6</a> </dd>
<dd>
<a href="https://www.sbprojects.net/knowledge/ir/rc6.php">https://www.sbprojects.net/knowledge/ir/rc6.php</a> </dd>
<dd>
<a href="http://www.pcbheaven.com/userpages/The_Philips_RC6_Protocol/">http://www.pcbheaven.com/userpages/The_Philips_RC6_Protocol/</a> </dd>
<dd>
<a href="http://www.righto.com/2010/12/64-bit-rc6-codes-arduino-and-xbox.html">http://www.righto.com/2010/12/64-bit-rc6-codes-arduino-and-xbox.html</a> </dd></dl>
</div><h2 class="groupheader">Variable Documentation</h2>
<a id="a7af2e83face1b9378d216f15a4d379cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7af2e83face1b9378d216f15a4d379cf">&#9670;&nbsp;</a></span>kMark</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int16_t kMark = 0</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a32b5997148b53fd2984388f6d0384c35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32b5997148b53fd2984388f6d0384c35">&#9670;&nbsp;</a></span>kRc5MinCommandLength</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint32_t kRc5MinCommandLength = 113778</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a26580409f593179d838c465647e35c41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26580409f593179d838c465647e35c41">&#9670;&nbsp;</a></span>kRc5MinGap</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint32_t kRc5MinGap = <a class="el" href="ir__RC5__RC6_8cpp.html#a32b5997148b53fd2984388f6d0384c35">kRc5MinCommandLength</a> - <a class="el" href="IRremoteESP8266_8h.html#a955183d3358fcafea853014ddd890574">kRC5RawBits</a> * (2 * <a class="el" href="ir__RC5__RC6_8cpp.html#aa42cae15fa77a196eb8f198de09e19eb">kRc5T1</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aa206173838597c760b4a01c36bbc771a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa206173838597c760b4a01c36bbc771a">&#9670;&nbsp;</a></span>kRc5SamplesMin</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kRc5SamplesMin = 11</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aa42cae15fa77a196eb8f198de09e19eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa42cae15fa77a196eb8f198de09e19eb">&#9670;&nbsp;</a></span>kRc5T1</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kRc5T1 = 889</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ae3485c1c157d6d84a0385cb1bfb8833a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3485c1c157d6d84a0385cb1bfb8833a">&#9670;&nbsp;</a></span>kRc5ToggleMask</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kRc5ToggleMask = 0x800</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a31ae862ce2a43edd99bda647262b18fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31ae862ce2a43edd99bda647262b18fa">&#9670;&nbsp;</a></span>kRc6_36ToggleMask</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kRc6_36ToggleMask = 0x8000</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ae05bbb9f690cc92feb0a9c14b3b8c477"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae05bbb9f690cc92feb0a9c14b3b8c477">&#9670;&nbsp;</a></span>kRc6HdrMark</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kRc6HdrMark = <a class="el" href="ir__RC5__RC6_8cpp.html#aff2a5bc05ddf61d289c44a4fd093009c">kRc6HdrMarkTicks</a> * <a class="el" href="ir__RC5__RC6_8cpp.html#aad98dc2541039634817609d4e297322f">kRc6Tick</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aff2a5bc05ddf61d289c44a4fd093009c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff2a5bc05ddf61d289c44a4fd093009c">&#9670;&nbsp;</a></span>kRc6HdrMarkTicks</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kRc6HdrMarkTicks = 6</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a0196311c9b116cf48c8f901fb6c93ac3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0196311c9b116cf48c8f901fb6c93ac3">&#9670;&nbsp;</a></span>kRc6HdrSpace</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kRc6HdrSpace = <a class="el" href="ir__RC5__RC6_8cpp.html#a35a9cc59fe5251a34c88e34b6a507fd3">kRc6HdrSpaceTicks</a> * <a class="el" href="ir__RC5__RC6_8cpp.html#aad98dc2541039634817609d4e297322f">kRc6Tick</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a35a9cc59fe5251a34c88e34b6a507fd3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35a9cc59fe5251a34c88e34b6a507fd3">&#9670;&nbsp;</a></span>kRc6HdrSpaceTicks</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kRc6HdrSpaceTicks = 2</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a4989f36b790a99545e708c8681b6b961"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4989f36b790a99545e708c8681b6b961">&#9670;&nbsp;</a></span>kRc6RptLength</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint32_t kRc6RptLength = <a class="el" href="ir__RC5__RC6_8cpp.html#acf2dc0074bfe7671deb8985eba4396e3">kRc6RptLengthTicks</a> * <a class="el" href="ir__RC5__RC6_8cpp.html#aad98dc2541039634817609d4e297322f">kRc6Tick</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="acf2dc0074bfe7671deb8985eba4396e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf2dc0074bfe7671deb8985eba4396e3">&#9670;&nbsp;</a></span>kRc6RptLengthTicks</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kRc6RptLengthTicks = 187</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aad98dc2541039634817609d4e297322f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad98dc2541039634817609d4e297322f">&#9670;&nbsp;</a></span>kRc6Tick</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kRc6Tick = 444</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a4df09270c1e9cda504026189e30829ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4df09270c1e9cda504026189e30829ff">&#9670;&nbsp;</a></span>kRc6ToggleMask</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint32_t kRc6ToggleMask = 0x10000UL</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7c41a2a72148172c93e39d5a2fd64036"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c41a2a72148172c93e39d5a2fd64036">&#9670;&nbsp;</a></span>kSpace</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int16_t kSpace = 1</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
